package com.qfedu.fmmall.sign.controller;

import com.qfedu.fmmall.common.vo.ResultVO;
import com.qfedu.fmmall.entity.Users;
import com.qfedu.fmmall.sign.service.UserSignUpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : yanBin
 * @date :2022/1/22 15:13
 */
@RestController
@RequestMapping("/user")
public class UserSignUpController {
    @Autowired
    private UserSignUpService userSignUpService;

    @PostMapping("/sign-up")
    public ResultVO signUpUsers(@RequestBody Users users){
        return userSignUpService.insertUsers(users);
    }
}
